<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function a(){
            history.forward();//前进一页
            history.back();//后退一页
            //前进或后退到指定页
            //go可选值：正整数 前进x页   负整数 后退x页
            history.go(1);
        }
        
    </script>
</head>
<body>
    
</body>
</html>